package com.duobab.springbootsecuritydemo.domain;

import lombok.Data;

@Data
public class Person {
    private int age;
    private String name;

    private Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public static Person ofPerson(int age, String name) {
        return new Person(age, name);
    }
}
